package com.lizhipeng07.entity;
import java.math.BigDecimal;
import java.util.Date;
public class Bid {
    private Integer id;
    private Integer itemId;
    private Integer userId;
    private BigDecimal bidAmount;
    private Date bidDate;

    private Item item;

    private User user;

    public Bid() {}

    public Bid(Integer itemId, Integer userId, BigDecimal bidAmount, Date bidDate) {
        this.itemId = itemId;
        this.userId = userId;
        this.bidAmount = bidAmount;
        this.bidDate = bidDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getBidAmount() {
        return bidAmount;
    }

    public void setBidAmount(BigDecimal bidAmount) {
        this.bidAmount = bidAmount;
    }

    public Date getBidDate() {
        return bidDate;
    }

    public void setBidDate(Date bidDate) {
        this.bidDate = bidDate;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
    @Override
    public String toString() {
        return "Bid{id=" + id + ", itemId=" + itemId + ", userId=" + userId +
                ", bidAmount=" + bidAmount + ", bidDate=" + bidDate + "}";
    }
}
